<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>

 <div class="left_content">
    <div class="title_box">Categorias</div>
    
        <ul class="left_menu">
        <%@page import="tienda.dao.CategoriaDAO,tienda.negocio.*,tienda.modelo.*,java.util.Collection"%>
			<%
			CategoriaDAO tpdos=new CategoriaDAO();
			Collection<Categoria> listas=tpdos.listar();
			int i = 0 ;
    		for (Categoria r : listas){
    		i++;
    		String cssClass = "odd";
    		if (i%2==0){
    			cssClass = "even";
    		}
    		%>
    		<li class="<%=cssClass%>"><a href="publicacionesxcategoria.jsp?idcategoria=<%=r.getIdCategoria()%>"><%=r.getNombre()%></a></li>
                  <%}
			%>
        </ul> 
        
        
     <div class="title_box">Productos Especiales</div>  
     <div class="border_box">
         <div class="product_title"><a href="details.html">Makita 156 MX-VL</a></div>
         <div class="product_img"><a href="details.html"><img src="images/p1.jpg" alt="" title="" border="0" /></a></div>
         <div class="prod_price"><span class="reduce">350$</span> <span class="price">270$</span></div>
     </div>  
     
     
     <div class="title_box">Newsletter</div>  
     <div class="border_box">
		<input type="text" name="newsletter" class="newsletter_input" value="your email"/>
        <a href="#" class="join">subscribe</a>
     </div>  
     
     <div class="banner_adds">
     
     <a href="#"><img src="images/bann2.jpg" alt="" title="" border="0" /></a>
     </div>    
        
    
  </div>   <!-- end of left content --> 
   